import {request, METHOD} from '@/utils/request'

// 会出现跨域的
export function listMovie(query) {
    return request(
     'http://192.168.1.151:7702/movie/pages',
     METHOD.GET,
     query,
    )
}

export function saveMovie(data){
    return request(
       'http://192.168.1.151:7702/movie',
        METHOD.POST,
        data
      )

}

export function updateMovie(data){
    return request(
       'http://192.168.1.151:7702/movie/update',
        METHOD.POST,
        data
    )

}


export function getMovie(id) {
    return request(
     'http://192.168.1.151:7702/movie/'+id,
     METHOD.GET,
    )
}
